#include <iostream>
using namespace std;
int main()
{
    cout << "vvedi chislo  ";
    int A;
    cin >> A;
    int B=A%10;
    int C=A%100/10;
    int D=A/100;
    cout << B << C <<D;
    return 0;
}
